<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf8" />
        <meta http-equiv="content-language" content="ru">
        <meta name="keywords" content="{$page_keywords}" />
        <meta name="description" content="{$page_description}" />
        <title>{$page_title}</title>
        <link rel="stylesheet" type="text/css" href="/css/styles.css" />
        <link rel="stylesheet" type="text/css" href="/css/style.css" />
        <link rel="stylesheet" type="text/css" href="/js/jEditor/jquery.wysiwyg.css" />
        
        <script type="text/javascript" src="/js/jquery.min.js"></script>
        <!-- визуальный редактор -->
        <script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
  
        <!--<script type="text/javascript" src="/js/jEditor/jquery.wysiwyg.js"></script>-->
        <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
                <script type="text/javascript" src="/js/ajaxupload.3.5.js"></script>
        <script type="text/javascript" src="/js/scripts.js"></script>
           <script type="text/javascript" src="/js/uploadfile.js"></script>
        <!--фильтр--> 
          <link rel="stylesheet" type="text/css" href="/css/chosen.css" />
         <script src="/js/chosen.jquery.js" type="text/javascript"></script>
         <script src="/js/docsupport/prism.js" type="text/javascript" charset="utf-8"></script>
  	<!--Диалоговые окна-->
        <script src="/js/alertify.js"></script>
        <link rel="stylesheet" href="/css/alertify.core.css" />
	<link rel="stylesheet" href="/css/alertify.default.css" id="toggleCSS" />
  <link href="/css/jquery-ui-timepicker-addon.css" rel="stylesheet" type="text/css"/>
        <script src="/js/jquery-ui-timepicker-addon.js"></script>
 
    </head>
    <body>
        <!-- ТУТ НАЧИНАЕТСЯ ШАПКА -->
  <div class="container"> 
  <div class="wrapper"> 
    <div class="table"> <span class="td1 wtd1"><a href="/"><img src="/images/index-01.png" alt="Логотип" class="noborders"></a></span> 
      <span class="td2 wtd2"> Тендерная площадка <br>
     <p>Сайт компании: <a href="http://gerc.dn.ua">gerc.dn.ua</a> </p></span> 
	
 {if $authenticated}
 	<span class="td3"> 
            <div class="login"> Вы вошли как <a href="{geturl controller='account' action='index'}"><span>{$identity->login}</span></a> 
        <div> 
     {if $authenticated}
{if $identity->type == 'admin'}
<a href="{geturl controller='admin' action='index'}" class="insait">Админ.панель</a>
{elseif $identity->type == 'seo'}
<a href="{geturl controller='seo' action='index'}" class="insait">SEO-управление</a>
{elseif $identity->type == 'globaladmin'}
<a href="{geturl controller='admin' action='index'}" class="insait">Админ.панель</a>
{elseif $identity->type == 'member'}

 <a href="/" class="insait">Вернуться на сайт</a>
{/if}
{else}
 <a href="/" class="insait">Вернуться на сайт</a>
{/if}
           
            <a href="{geturl controller='account' action='logout'}" class="out">Выйти</a> 
        </div>
      </div>
      </span>
                   
                {else}
				<span class="td6"> 
     <form method="post" action="{geturl action='login' controller='account'}">
	 <div class="inputs">
	 <input name="login" type="text" class="toplogin" value="Логин" onfocus="if (this.value=='Логин') this.value=''" onblur="if (this.value==''){ldelim}this.value='Логин'{rdelim}" value="">
	 <input name="password" type="password"  class="toppass" value="Пароль" onfocus="if (this.value=='Пароль') this.value=''" onblur="if (this.value==''){ldelim}this.value='Пароль'{rdelim}" value="">
	 <a href="{geturl controller='account' action='fetchpassword'}">Забыли пароль?</a></div>
	 	 <div class="buts"><button type="submit" class="vojti" >Войти</button></div>
		 <div class="clear"></div>
	 </form>
      </span>
	    <span class="td7"> 
	  <a href="{geturl controller='account' action='register'}" class="regs">Зарегистрироваться</a>
	  
	      </span>
                  
                {/if}	
	
	
	   </div>


        <!-- ТУТ ШАПКА КОНЧИЛАСЬ -->
        
            <div class="linestop"></div>
    <a href="{geturl controller='index' action='index'}" class="topmenu">Активные тендеры</a> 
	<a href="{geturl controller='index' action='archive'}" class="topmenu">Архив тендеров</a>
	<!-- <a href="#" class="topmenu fv15">Инструкции</a> 
	<a href="#" class="topmenu fv15">Контакты</a>	-->
        {foreach from=$menu item='m'}
        <a href="{geturl route='viewpage' alias=$m->alias}" class="topmenu fv15">{$m->name}</a>
        {/foreach}
<div class="hqindex"> 
      <h1>{$tender->name}</h1>
    </div>
    <div class="table"> 
     
      <div class="row"> 